* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #ffe4b5 0%, #ffdab9 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  min-height: 100vh;
}

.header {
  grid-column: 1/3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 30px;
  background: rgba(255, 235, 205, 0.7);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff8c00;
  animation: bounce 2s infinite alternate;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.time-display {
  font-size: 1.2rem;
  color: rgba(51, 51, 51, 0.7);
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  margin-left: auto; /* 将时间显示靠右对齐 */
}

.main-map {
  grid-column: 1/3;
  height: 700px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  background: rgba(255, 235, 205, 0.6);
  z-index: 10;
}

/* 侧边信息框样式 */
.side-info {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 300px;
  background: rgba(255, 235, 205, 0.95);
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transform: translateX(-320px);
  transition: transform 0.5s ease;
  overflow-y: auto;
}

.side-info.right {
  right: 0;
  transform: translateX(320px);
}

.side-info.show {
  transform: translateX(0);
}

.side-info.right.show {
  transform: translateX(0);
}

.info-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-title {
  color: #ff8c00;
  font-size: 1.5rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff8c00;
}

.info-content {
  padding: 20px;
}

.province-cuisine {
  margin-bottom: 20px;
}

.cuisine-name {
  font-size: 1.2rem;
  color: #ff8c00;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.dish-list {
  list-style: none;
}

.dish-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.dish-list li:before {
  content: "🍽️";
  position: absolute;
  left: 0;
  color: #ff8c00;
}

.province-desc {
  margin-top: 20px;
  line-height: 1.8;
  color: rgba(51, 51, 51, 0.8);
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9;
  display: none;
  transition: all 0.3s;
}

.mask.show {
  display: block;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement,
.video-container,
.chart-panel {
  background: rgba(255, 235, 205, 0.8);
  border-radius: 15px;
  padding: 20px;
  animation: fadeIn 0.8s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.1);
}

.chart-title {
  color: #ff8c00;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.chart-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: #ff8c00;
  margin-right: 10px;
  border-radius: 3px;
}

.dish-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.dish-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.dish-image:hover {
  transform: translateY(-5px);
  border-color: #ff8c00;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

#baiduMapContainer {
  display: none;
  grid-column: 1/3;
  height: 700px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

#backButton {
  position: absolute;
  top: 120px;
  left: 20px;
  padding: 8px 15px;
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#backButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

#backButton i {
  margin-right: 5px;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.chart-container {
  height: 300px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
}

.footer {
  grid-column: 1/3;
  text-align: center;
  padding: 15px;
  color: rgba(51, 51, 51, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  margin-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

.map-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 235, 205, 0.7);
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 100;
  font-size: 1.2rem;
  color: #ff8c00;
  animation: pulse 2s infinite;
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-column: 1/3;
  }

  .side-info {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .side-info {
    width: 250px;
  }

  .main-map {
    height: 500px;
  }
}
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* 美化跳转按钮样式 */
.header button {
  padding: 8px 15px;
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* 返回按钮样式 */
#returnButton {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 15px;
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#returnButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #ffe4b5 0%, #ffdab9 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 3fr 2fr; /* 修改列宽比例为 3:2 */
  gap: 20px;
  min-height: 100vh;
}

.header {
  grid-column: 1/3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 30px;
  background: rgba(255, 235, 205, 0.7);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff8c00;
  animation: bounce 2s infinite alternate;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.time-display {
  font-size: 1.2rem;
  color: rgba(51, 51, 51, 0.7);
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  margin-left: auto;
}

.side-panel {
  grid-column: 1/3;
  display: grid;
  grid-template-columns: 3fr 2fr; /* 修改列宽比例为 3:2 */
  gap: 20px;
  align-items: stretch; /* 确保左右两侧高度一致 */
}

.left-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.right-panel {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
}

.announcement,
.video-container,
.chart-panel {
  background: rgba(255, 235, 205, 0.8);
  border-radius: 15px;
  padding: 20px;
  animation: fadeIn 0.8s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.1);
}

.chart-title {
  color: #ff8c00;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.chart-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: #ff8c00;
  margin-right: 10px;
  border-radius: 3px;
}

.chart-container {
  height: 300px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 10px;
}

.footer {
  grid-column: 1/3;
  text-align: center;
  padding: 15px;
  color: rgba(51, 51, 51, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  margin-top: 20px;
}

.data-card {
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  color: white;
  border-radius: 15px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.data-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.data-card .value {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin: 15px 0;
}

.data-card .description {
  font-size: 0.9rem;
  text-align: center;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }
  .side-panel {
    grid-column: 1/3;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
  }
  .time-display {
    margin-left: 0;
  }
  .card-row {
    grid-template-columns: 1fr;
  }
}



.side-panel {
  grid-column: 1/5;
  display: grid;
  grid-template-columns: 3fr 1fr; /* 修改列宽比例为 3:2 */
  gap: 20px;
  align-items: stretch; /* 确保左右两侧高度一致 */
}

.left-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.right-panel {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
}

.chart-container {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  height: 150px;
}

.video-container iframe {
  width: 100%;
  height: 450px;
  min-height: 300px;
  border-radius: 10px;
}

